﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace CashOrCard.Models
{
    public class AdvtSite
    {
        [Key]
        public int AdvtSiteId { get; set; }
        public string SiteName { get; set; }
        public string SiteDescription { get; set; }
        public string SiteURL { get; set; }
        public int SiteTypeId { get; set; }
        [ForeignKey("SiteTypeId")]
        public virtual SiteType SiteType { get; set; }        

        public string Address { get; set; }
        public string ZipCode { get; set; }
        public string City { get; set; }
        public string longitude { get; set; }
        public string latitude { get; set; }
        public string PhoneNumber { get; set; }
        public decimal SiteAmount { get; set; }
        public float SiteRate { get; set; }
        public string SiteThumb { get; set; }        
        public DateTime CreateDate { get; set; }
        public bool IsEnable { get; set; }

        public int CountryId { get; set; }
        [ForeignKey("CountryId")]
        public virtual Country Country { get; set; }
        
        public virtual ICollection<CardType> CardTypes { get; set; }
        public virtual ICollection<CashType> CashTypes { get; set; }
        public virtual ICollection<Promotion> Promotions { get; set; }
        public virtual ICollection<StarRate> StarRates { get; set; }
        public virtual ICollection<AdvtSiteImage> SiteImages { get; set; }       
        public virtual User User { get; set; }
        
    }
}